package com.jayson.server.utils;

public class HttpProtocolUtil {

    public static String getHttpHeader200(long contentLength){
        return "HTTP/1.1 200 OK \n" +
                "Content-Type: text/html \n" +
                "Content-Length: " + contentLength + " \n" +
                "\r\n";
    }

    public static String getHttpHeader404(){
        String str_404 = "404 not Found";
        return "HTTP/1.1 404 NOT Found \n" +
                "Content-Type: text/html \n" +
                "Content-Length:" + str_404.getBytes().length + " \n" +
                "\r\n" + str_404;
    }


}
